<?php 
if($this->countModules('left and right') == 0) $contentwidth = "100%";
if($this->countModules('left or right') == 1) $contentwidth = "680px";
if($this->countModules('left and right') == 1) $contentwidth = "454px";
?>

<?php 
if($this->countModules('left and right') == 0) $bgcontent = "-0";
if($this->countModules('left or right') == 1) $bgcontent = "-lor";
if($this->countModules('left and right') == 1) $bgcontent = "-lar";
?>

<?php 
$count = 0 ;
if($this->countModules('user1') > 0 ) 
$count = $count + 1;
if($this->countModules('user2') > 0 ) 
$count = $count + 1;
if($this->countModules('user3') > 0 ) 
$count = $count + 1;
if($this->countModules('user4') > 0 ) 
$count = $count + 1;
$widthuser ="";
if($count == 0) 
$widthuser = "";
if ( $count == 1) 
$widthuser = "100%";
if ( $count == 2) 
$widthuser = "49%";
if ( $count == 3) 
$widthuser = "326px";
if ( $count == 4) 
$widthuser = "245px";
?>


<?php 
$count = 0 ;
if($this->countModules('banner-main1') > 0 ) 
$count = $count + 1;
if($this->countModules('banner-main2') > 0 ) 
$count = $count + 1;
$widthbannermain ="";
if($count == 0) 
$widthbannermain = "";
if ( $count == 1) 
$widthbannermain = "100%";
if ( $count == 2) 
$widthbannermain = "50%";
?>

<?php 
$count = 0 ;
if($this->countModules('banner-main5') > 0 ) 
$count = $count + 1;
if($this->countModules('banner-main6') > 0 ) 
$count = $count + 1;
$widthbannerbmain ="";
if($count == 0) 
$widthbannerbmain = "";
if ( $count == 1) 
$widthbannerbmain = "100%";
if ( $count == 2) 
$widthbannerbmain = "50%";
?>

<?php 
$count = 0 ;
if($this->countModules('bottom1') > 0 ) 
$count = $count + 1;
if($this->countModules('bottom2') > 0 ) 
$count = $count + 1;
if($this->countModules('bottom3') > 0 ) 
$count = $count + 1;
if($this->countModules('bottom4') > 0 ) 
$count = $count + 1;
$widthbottom ="";
if($count == 0) 
$widthbottom = "";
if ( $count == 1) 
$widthbottom = "100%";
if ( $count == 2) 
$widthbottom = "49%";
if ( $count == 3) 
$widthbottom = "316px";
if ( $count == 4) 
$widthbottom = "245px";
?>
